﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Server.Model;
using System.Runtime.Serialization;

namespace Server.Service.Model
{
    [DataContract]
    public class WCFReservation
    {
        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public DateTime Date { get; set; }
        [DataMember]
        public WCFCar Car { get; set; }
        [DataMember]
        public List<WCFPartReservation> PartReservations { get; set; }
        [DataMember]
        public WCFUser User { get; set; }

        public WCFReservation(Reservation reservation)
        {
            this.Id = reservation.Id;
            this.Date = reservation.Date;


            PartReservations = new List<WCFPartReservation>();
        }
    }
}
